package com.meisupic.copyright.domain.vo;

import java.io.Serializable;
import lombok.Data;

/**
 * creation wuxun
 * @Date 2018/1/22 下午4:41
 */
@Data
public class ReturnToDciMessageVo implements Serializable {

  private static final long serialVersionUID = 4893612653469228976L;

  private boolean flag;

  private String message;

  public ReturnToDciMessageVo(boolean flag) {
    this.flag = flag;
  }

  public static ReturnToDciMessageVo success() {
    return new ReturnToDciMessageVo(true);
  }

  public static ReturnToDciMessageVo failure(String message) {
    ReturnToDciMessageVo returnToDciMessageVo = new ReturnToDciMessageVo(false);
    returnToDciMessageVo.setMessage(message);
    return returnToDciMessageVo;
  }
}
